export const routers = [
    {
        path: '/',
        component: () => import('@/components/navView'),
        redirect: '/home',
        hidden: true,
        children: [
            {
                path: 'home',
                name: 'home',
                component: () => import('@/views/home'),
                meta: {title: '主页'}
            },
            {
                path: 'course',
                name: 'course',
                component: () => import('@/views/course'),
                meta: {title: '课表详情'}
            },
            {
                path: 'score',
                name: 'score',
                component: () => import('@/views/score'),
                meta: {title: '成绩详情'}
            },
            {
                path: 'exam',
                name: 'exam',
                component: () => import('@/views/exam'),
                meta: {title: '考试详情'}
            },
            {
                path: 'weather',
                name: 'weather',
                component: () => import('@/views/weather'),
                meta: {title: '天气详情'}
            },
            {
                path: 'setting',
                name: 'setting',
                component: () => import('@/views/setting'),
                meta: {title: '设置'}
            }
        ]
    },
    {
        path: '/login',
        component: () => import('@/views/login'),
        meta: {title: '登录'}
    },
    {
        path: '/404',
        component: () => import('@/views/404'),
        meta: {title: '找不到'}
    },
    {
        path: '/.*',
        redirect: '/404'
    }
]
